#!/usr/bin/sh
sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
tar zxvf Python-3.10.4.tgz
cd Python-3.10.4
./configure --enable-optimizations --prefix=/usr/local/python3.10 --with-ssl-default-suites=openssl

make && make install
if [ ! -f "/usr/bin/python33" ]; then
    ln -s /usr/local/python3.10/bin/python3.10 /usr/bin/python33
fi
if [ ! -f "/usr/bin/pip33" ]; then
    ln -s /usr/local/python3.10/bin/pip3.10 /usr/bin/pip33
fi


  ln -s /usr/local/python3.8.16/bin/python3.8 /usr/bin/python3.8

    ln -s /usr/local/python3.8.16/bin/pip3.8 /usr/bin/pip3.8

     ln -s /usr/local/python3.8.16/bin/pyinstaller /usr/bin/pyinstaller3.8



     ./configure --prefix=/usr/local/python3.8.16 --with-openssl=/usr/local/ssl --enable-optimizations --enable-shared